package assist.domain.model;

import java.io.Serializable;

import javax.jdo.annotations.NotPersistent;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;


@PersistenceCapable(detachable = "true")
public class RosterPlayer implements Serializable
{
    @NotPersistent
    private static final long serialVersionUID = 1L;    
    @PrimaryKey
    @Persistent
    private String key;

    /**
     *
     */
    @Persistent
    private Player player;
    @Persistent
    private Team team;    
    
    @Persistent
    private String position;
    @Persistent
    private Integer number;
    @Persistent
    private String gameId;
    

    /**
     * @param player the player to set
     */
    public void setPlayer(Player player)
    {
        this.player = player;
    }
    /**
     * @return the player
     */
    public Player getPlayer()
    {
        return player;
    }
    /**
     * @param position the position to set
     */
    public void setPosition(String position)
    {
        this.position = position;
    }
    /**
     * @return the position
     */
    public String getPosition()
    {
        return position;
    }
    /**
     * @param number the number to set
     */
    public void setNumber(Integer number)
    {
        this.number = number;
    }
    /**
     * @return the number
     */
    public Integer getNumber()
    {
        return number;
    }
    public String getKey()
    {
        // TODO Auto-generated method stub
        return key;
    }
    
    public String getGameId()
    {
        return this.gameId;
    }    
    public void setGameId(String gameId)
    {
        this.gameId = gameId;
    }
    /**
     * @param team the team to set
     */
    public void setTeam(Team team)
    {
        this.team = team;
    }
    /**
     * @return the team
     */
    public Team getTeam()
    {
        return team;
    }
    public void setKey(String string)
    {
        this.key = string;
    }

}
